<template>
  <div class="page">
    <component ref="instance"
               :is="instanceComp">
    </component>
  </div>
</template>

<script setup>
import {useViewStore} from "../store/view.js";
import Search from "../modules/search/Search.vue";
import {onMounted,shallowRef} from "vue";
const view = useViewStore();
const instanceComp = shallowRef(null);
onMounted(async ()=>{
  try {
    const obj = await import(/* @vite-ignore */"https://h5.ledfin.cn/develop/lf-text.js");
    console.log(obj);
    instanceComp.value = obj.renderer;
  } catch (e) {
    console.log(e);
  }
})
</script>

<style scoped>
.page{
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
</style>